package com.gupaoedu.vip.mongo.explorer.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * 短链接实体类定义
 */
@Data
@Document(collection = "t_short_url")
public class ShortUrl implements Serializable {

    @Id
    private String url;
    private String fullUrl;

    public ShortUrl() {}

    public ShortUrl(String url, String fullUrl) {
        this.url = url;
        this.fullUrl = fullUrl;
    }

}
